home *** CD-ROM | disk | FTP | other *** search
/ PCNet 1998 May / PCnet Mayıs 1998.iso / Multimed / Program / A_Trial.exe / data.z / JMxSlideTransition.class (.txt) < prev    next >
Encoding:
Java Class File  |  1997-12-04  |  1.1 KB  |  80 lines

  1. public class JMxSlideTransition extends JMxCopyTransition {
  2.    public void GetNextOffset(boolean var1) {
  3.       if (var1) {
  4.          super.m_OffX -= super.m_DeltaX;
  5.          super.m_OffY -= super.m_DeltaY;
  6.          if (super.m_OffX < 0) {
  7.             super.m_OffX = 0;
  8.          }
  9.  
  10.          if (super.m_OffY < 0) {
  11.             super.m_OffY = 0;
  12.             return;
  13.          }
  14.       } else {
  15.          super.m_OffX += super.m_DeltaX;
  16.          super.m_OffY += super.m_DeltaY;
  17.          if (super.m_OffX > super.m_PlayRect.width) {
  18.             super.m_OffX = super.m_PlayRect.width;
  19.          }
  20.  
  21.          if (super.m_OffY > super.m_PlayRect.height) {
  22.             super.m_OffY = super.m_PlayRect.height;
  23.          }
  24.       }
  25.  
  26.    }
  27.  
  28.    public void InitDelta(boolean var1) {
  29.       if (super.m_TransType != 217 && super.m_TransType != 218) {
  30.          super.m_DeltaX = super.m_PlayRect.width / super.m_Frames;
  31.       }
  32.  
  33.       if (super.m_DeltaX == 0) {
  34.          super.m_DeltaX = 1;
  35.       }
  36.  
  37.       if (super.m_TransType != 216 && super.m_TransType != 215) {
  38.          super.m_DeltaY = super.m_PlayRect.height / super.m_Frames;
  39.       }
  40.  
  41.       if (super.m_DeltaY == 0) {
  42.          super.m_DeltaY = 1;
  43.       }
  44.  
  45.       if (var1) {
  46.          super.m_OffX = super.m_PlayRect.width - super.m_DeltaX;
  47.          super.m_OffY = super.m_PlayRect.height - super.m_DeltaY;
  48.       } else {
  49.          super.m_OffX = super.m_DeltaX;
  50.          super.m_OffY = super.m_DeltaY;
  51.       }
  52.  
  53.       super.m_DestX = 0;
  54.       super.m_DestY = 0;
  55.       super.m_DestW = super.m_PlayRect.width;
  56.       super.m_DestH = super.m_PlayRect.height;
  57.       this.GetNextDest(var1);
  58.    }
  59.  
  60.    public void GetNextDest(boolean var1) {
  61.       if (super.m_DeltaX > 0) {
  62.          if (super.m_TransType != 215 && super.m_TransType != 220 && super.m_TransType != 222) {
  63.             super.m_DestX = var1 ? super.m_OffX : 0 - super.m_OffX;
  64.          } else {
  65.             super.m_DestX = var1 ? 0 - super.m_OffX : super.m_OffX;
  66.          }
  67.       }
  68.  
  69.       if (super.m_DeltaY > 0) {
  70.          if (super.m_TransType == 218 || super.m_TransType == 222 || super.m_TransType == 221) {
  71.             super.m_DestY = var1 ? 0 - super.m_OffY : super.m_OffY;
  72.             return;
  73.          }
  74.  
  75.          super.m_DestY = var1 ? super.m_OffY : 0 - super.m_OffY;
  76.       }
  77.  
  78.    }
  79. }
  80.